package com.kangfuqiang.util;

import java.io.File;
import java.io.InputStream;

public class ResourceUtil {
	public static InputStream getResourceAsStream(String path){
		return Thread.currentThread().getContextClassLoader().getResourceAsStream(path);
	}
	public static File getResourceAsFile(String path){
		return new File(Thread.currentThread().getContextClassLoader().getResource(path).getFile());
	}
}
